package com.crizzbe.storeManage.Controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.crizzbe.storeManage.entity.User;
import com.crizzbe.storeManage.mapper.UserMapper;

@CrossOrigin
@RestController
public class FindAllController {
	@Autowired
	private UserMapper usermapper;
 @GetMapping("user/findAll")
 public List<User> findAll(int page) {
	 return usermapper.selectList(null);
 }
}
